package com.qzsoft.zhjd.materiel.modules.materielprojectsummary.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.common.annotation.ZhjdDataFilter;
import com.qzsoft.zhjd.common.components.BaseServiceComponent;
import com.qzsoft.zhjd.materiel.modules.materielprojectsummary.dto.MaterielProjectSummaryDto;
import com.qzsoft.zhjd.materiel.modules.materielprojectsummary.mapper.MaterielProjectSummaryMapper;
import com.qzsoft.zhjd.materiel.modules.materielprojectsummary.service.MaterielProjectSummaryService;

/**
 * @ClassName MaterielProjectSummaryServiceImpl
 * @Description 项目发料情况汇总分析
 * @author linhuawei
 * @since 2022-04-04
 */
@Service
public class MaterielProjectSummaryServiceImpl implements MaterielProjectSummaryService {

    @Autowired
    private MaterielProjectSummaryMapper materielProjectSummaryMapper;

    @Autowired
    private BaseServiceComponent baseServiceComponent;

    @Override
    @ZhjdDataFilter(tableAlias = "t1")
    public IPage<MaterielProjectSummaryDto> pageDto(Map<String, Object> params) {
        IPage<MaterielProjectSummaryDto> page = baseServiceComponent.getPage(params, MaterielProjectSummaryDto.class);
        return materielProjectSummaryMapper.queryDto(page, params);
    }

}
